/*
 *    Copyright (c) 2018-2025, lengleng All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright
 * notice, this list of conditions and the following disclaimer in the
 * documentation and/or other materials provided with the distribution.
 * Neither the name of the pig4cloud.com developer nor the names of its
 * contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission.
 * Author: lengleng (wangiegie@gmail.com)
 */
package com.excesys.exsecs.om.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;

/**
 * 巡检计划表
 *
 * @author weiyj
 * @date 2023-03-01 14:10:58
 */
@Data
@TableName("om_i_check_plan")
@EqualsAndHashCode(callSuper = true)
@Schema(description = "巡检计划表")
public class OmICheckPlan  extends Model<OmICheckPlan> {

	/**
	 * 主键
	 */
	@TableId(type = IdType.AUTO)
	@Schema(description = "主键")
	private Integer plId;

	/**
	 * 计划编号
	 */
	@Schema(description = "计划编号")
	private String planNo;

	/**
	 * 计划名称
	 */
	@Schema(description = "计划名称")
	private String planName;

	/**
	 * 巡检路线ID
	 */
	@Schema(description = "巡检路线ID")
	private Integer routeId;

	/**
	 * 巡检部门
	 */
	@Schema(description = "巡检部门")
	private Long checkDeptId;

	/**
	 * 巡检人ID
	 */
	@Schema(description = "巡检人ID")
	private Long checkUserId;

	/**
	 * 巡检人名称
	 */
	@Schema(description = "巡检人名称")
	private String checkUserName;

	/**
	 * 巡检人电话
	 */
	@Schema(description = "巡检人电话")
	private String checkUserPhone;

	/**
	 * 计划类型
	 */
	@Schema(description = "计划类型")
	private String planType;

	/**
	 * 计划周期类型
	 */
	@Schema(description = "计划周期类型")
	private String planCycleType;

	/**
	 * 周期单位
	 */
	@Schema(description = "周期单位")
	private String cycleType;

	/**
	 * 计划开始时间
	 */
	@Schema(description = "计划开始时间")
	private String planStartTime;

	/**
	 * 计划结束时间
	 */
	@Schema(description = "计划结束时间")
	private String planEndTime;

	/**
	 * 每天频率
	 */
	@Schema(description = "每天频率")
	private Integer frequency;

	/**
	 * 执行次数
	 */
	@Schema(description = "执行次数")
	private Integer frequencyNum;

	/**
	 * 执行时间
	 */
	@Schema(description = "执行时间")
	private String excuteDate;

	/**
	 * 执行开始时间
	 */
	@Schema(description = "执行开始时间")
	private String excuteStartTime;

	/**
	 * 执行结束时间
	 */
	@Schema(description = "执行结束时间")
	private String excuteEndTime;

	/**
	 * 计划状态
	 */
	@Schema(description = "计划状态")
	private String planStatus;

	/**
	 * 停用启用
	 */
	@Schema(description = "停用启用")
	private String delFlag;

	/**
	 * 备注
	 */
	@Schema(description = "备注")
	private String remark;

	/**
	 * 创建人
	 */
	@TableField(fill = FieldFill.INSERT)
	@Schema(description="创建人")
	private String createBy;

	/**
	 * 创建时间
	 */
	@TableField(fill = FieldFill.INSERT)
	@Schema(description="创建时间")
	private LocalDateTime createTime;

	/**
	 * 更新人
	 */
	@TableField(fill = FieldFill.INSERT_UPDATE)
	@Schema(description="更新人")
	private String updateBy;

	/**
	 * 更新时间
	 */
	@TableField(fill = FieldFill.INSERT_UPDATE)
	@Schema(description="更新时间")
	private LocalDateTime updateTime;


}
